package com.xjy.system.domain.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
import javax.validation.constraints.*;



/**
 * VIEW添加对象 report_material_detail
 *
 * @author xjy
 * @date 2022-03-27
 */
@Data
@ApiModel("物料明细添加对象")
public class ReportMaterialDetailAddBo {


    @ApiModelProperty("项目id")
    private Long projId;

    @ApiModelProperty("项目名称")
    private String projName;

    @ApiModelProperty("物料id")
    @NotBlank(message = "物料id不能为空")
    private String materialId;

    @ApiModelProperty("物料名称")
    @NotBlank(message = "物料名称不能为空")
    private String name;

    @ApiModelProperty("物料单位")
    @NotBlank(message = "物料单位不能为空")
    private String unit;

    @ApiModelProperty("$column.columnComment")
    private Date createTime;

    @ApiModelProperty("状态:0:入库,1:借出,2:归还,3:报损,4:售卖")
    @NotBlank(message = "状态:0:入库,1:借出,2:归还,3:报损,4:售卖不能为空")
    private String materialStatus;

    @ApiModelProperty("物料期初余额")
    private Long startAmt;

    @ApiModelProperty("变更数量")
    @NotNull(message = "变更数量不能为空")
    private Long num;

    @ApiModelProperty("物料期末余额")
    private Long initAmt;

    @ApiModelProperty("可用库存")
    private Long availableStock;
}
